From 31bfcc1a1d296b6ae757fd230836bdc386e7b9f9 Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Sun, 20 Mar 2005 07:53:16 +0000 Subject: [PATCH] cast away the constness in the call to free(). Sat Mar 19 23:52:33 2005 Manish Singh * xdgmimeglob.c (_xdg_glob_hash_insert_text): cast away the constness in the call to free(). --- gtk/xdgmime/ChangeLog | 5 +++++ gtk/xdgmime/xdgmimeglob.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gtk/xdgmime/ChangeLog b/gtk/xdgmime/ChangeLog index 3bd89fed9a..02bf61bdac 100644 --- a/gtk/xdgmime/ChangeLog +++ b/gtk/xdgmime/ChangeLog @@ -1,3 +1,8 @@ +Sat Mar 19 23:52:33 2005 Manish Singh + + * xdgmimeglob.c (_xdg_glob_hash_insert_text): cast away the constness + in the call to free(). + 2005-03-20 Matthias Clasen * xdgmimeglob.c (_xdg_glob_hash_insert_text): Don't diff --git a/gtk/xdgmime/xdgmimeglob.c b/gtk/xdgmime/xdgmimeglob.c index fb89e82023..e99eb834df 100644 --- a/gtk/xdgmime/xdgmimeglob.c +++ b/gtk/xdgmime/xdgmimeglob.c @@ -242,7 +242,7 @@ _xdg_glob_hash_insert_text (XdgGlobHashNode *glob_hash_node, if (*text == '\000') { if (node->mime_type) - free (node->mime_type); + free ((void *) node->mime_type); node->mime_type = mime_type; } else -- 2.30.2